package com.qf.entity;

import lombok.Getter;

/**
 * 枚举类 - 多例模式
 */
@Getter
public enum Codes {
    SUCC(200, "成功"),
    FAIL(500,"服务器异常"),
    PHONE_ERROR(505, "手机号已经被注册！"),
    VERIFY_ERROR(506, "手机号或密码输入错误！"),
    CODESEND_ERROR(507, "验证码发送异常！"),
    CODE_ERROR(508, "验证码错误或验证码已失效！"),
    YUYUE_ERROR(509,"预约失败或者你已经预约，请检查预约情况!!!!");


    private final Integer code;
    private final String msg;

    Codes(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
